package com.quan.common.websocket;

import org.springframework.messaging.simp.annotation.SubscribeMapping;
import org.springframework.stereotype.Controller;

import com.quan.common.core.BaseController;

/**
 * WebSocket SockJS，使用SockJS来访问
 * @author yhaoquan
 *
 */
@Controller
public class WebSocketSubscribeController extends BaseController {
	
	/**
	 * 前端SockJS连接，成功返回信息给客户端
	 * @return
	 */
	@SubscribeMapping(value = "/notification")
	public String notification() {
		return "欢迎订阅【系统消息功能】" ;
	}
	
	
}
